package com.cxx.home.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.cxx.framework.data.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("travel_spot")
public class TravelSpot extends AbstractEntity {
    @TableField("name")
    private String name;

    @TableField("city")
    private String city;

    @TableField(value = "area", typeHandler = JacksonTypeHandler.class)
    private List<String> area;

    @TableField("address")
    private String address;

    @TableField("price")
    private Double price;

    @TableField("recommend_rate")
    private Integer recommendRate;

    @TableField("traffic")
    private String traffic;

    @TableField("router")
    private String router;

    @TableField(value = "foods", typeHandler = JacksonTypeHandler.class)
    private List<String> foods;

    @TableField(value = "projects", typeHandler = JacksonTypeHandler.class)
    private List<String> projects;

    @TableField("remark")
    private String remark;
}
